package com.example.exception;

import com.example.domain.AjaxResult;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * Copyright: Copyright (c) 2022
 *
 * <p>
 * Description:
 *
 * @author LiuFeng
 * @version 2022/11/17 17:38
 * @since
 */
@RestControllerAdvice
public class GlobalExceptionHandler {

    @ExceptionHandler(OpcException.class)
    public AjaxResult opcExceptionHandler(OpcException exception) {
        AjaxResult result = new AjaxResult();

        return result;

    }
}
